/*
 * Copyright user2010
 * All rights reserved
 */

package org.myorg.applitest.gui.swing.components.dialog;

import org.myorg.applitest.gui.swing.components.button.BtnCmdOk;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author user
 */
public class DlgBoxError extends DlgBoxAbs implements ActionListener{

    public DlgBoxError(String txtError){
        super(txtError);
        this.setTitle("Error box");
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() instanceof BtnCmdOk)
        {
            this.dispose();
        }
        else
        {
            super.actionPerformed(e);
        }
    }

}
